import 'package:flutter/widgets.dart';
import 'package:mobile_app.core/core/presentation/helpers/screen_util_mixin.dart';
import 'package:mobile_app.core/core/presentation/theme/theme.dart';
import 'package:mobile_app.home.core/core/presentation/theme/home_core_theme.dart';
import 'package:mobile_app.home.learning.spaced_repetitions/learning_finish_card/presentation/localization/translation.dart';

class LearningFinishCard extends StatelessWidget with ScreenUtilMixin {
  const LearningFinishCard({
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      color: CoreTheme.of(context).backgroundColor,
      child: Center(
        child: Padding(
          padding: EdgeInsets.symmetric(
            horizontal: 30 * logWidthScaleFactor,
          ),
          child: Text(
            LearningFinishCardTranslation.of(context).body,
            style: HomeCoreTheme.of(context).textTheme.cardUnderlyingSurfaceBody,
            textAlign: TextAlign.center,
            textScaleFactor: logWidthScaleFactor,
          ),
        ),
      ),
    );
  }
}
